<?php

class Api_thucdonController extends Zend_Controller_Action
{

    public function init()
    {
        $option=array(
        		"layout" => "layout",
        		"layoutPath" => APPLICATION_PATH."/layouts/scripts/printing"
        );
        Zend_Layout::startMvc($option);
        
        $this->view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
    }
   
    public function indexAction()
    {
        $this->_helper->layout()->disableLayout();
        $this->_helper->viewRenderer->setNoRender(true);
    }
    
    public function getdsthucdonAction()
    {
        $this->_helper->layout()->disableLayout();
        $this->_helper->viewRenderer->setNoRender(true);
        
        $obThucdon = new Api_Model_Thucdon();
        $obThucdon->Ngay = date('Y-m-d');
        $lstThucdon = $obThucdon->GetAllDsThucdontheongay();
        
        echo json_encode($lstThucdon);
    }
}



